package org.wdcode.ui.head;

import java.io.IOException;

import javax.servlet.jsp.JspException;

/**
 * EditorTag 使用的资源文件如js css
 * @author WD
 * @since JDK6
 * @version 1.0 2009-11-28
 */
public final class EditorHead extends BaseHead {
	/**
	 * 标签开始
	 */
	@Override
	public void doTag() throws JspException, IOException {
		// 生成保存字符串缓存
		StringBuilder info = new StringBuilder("<script type=\"text/javascript\" src=\"");
		info.append(getPath());
		info.append("/wdui/ckeditor/ckeditor.js\"></script>");

		// 打印到页面
		getJspContext().getOut().print(info.toString());
	}
}
